import {View} from "@tarojs/components";
import AssetImage from "@/common/AssetImage";
import React from "react";
import {
  Button,
} from '@antmjs/vantui';


export interface BottomButtonPros {
  submitText?: string;
  margin?: string;
  onSubmit?: () => void;
}

export default function BottomButton(pros: BottomButtonPros) {
  return (
    <View style={{margin: pros.margin?pros.margin:'24px'}}>

      <Button color={AssetImage.themeColor} block onClick={pros.onSubmit}>
        {pros.submitText}
      </Button>
    </View>
  )
}


